<?php
global $_RQ,$_AR;
$_RQ['op']=$_RQ['op']?$_RQ['op']:'list';
$return=array();
$setting=$this->plugin_setting('setting');
if($_RQ['op']=='list'){
	$postdata=get_postdata();
	$pindex = max(1, intval($_RQ['page']));
	$psize = 20;
	$params=array('uniacid'=>$_SESSION['uniacid']);
	if($_RQ['groupid']){
		$params['groupid']=$_RQ['groupid'];
	}
	if($_RQ['keyword']){
		$params['title like']='%'.trim($_RQ['keyword']).'%';
	}
	
   // $fields=array('id','title','image','','url','paixu','readnum','ishome','ishot');
    $orderby='id desc';
	$total='';
	$return['list']=pdo_getslice('jy_live_list',$params,array($pindex,$psize),$total,$fields,'',$orderby);
	

	$return['groups']=pdo_getslice('jy_live_group',array('uniacid'=>$_SESSION['uniacid'],'status'=>1));
	$return['setting'] = $setting;
	exi($return);
}

?>